package com.example.zlloggingservice.api;

import com.example.zlloggingservice.common.base.PageResponse;
import com.example.zlloggingservice.common.base.ResponseResult;
import com.example.zlloggingservice.dto.request.OperationLogReqDTO;
import com.example.zlloggingservice.dto.response.OperationLogResDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author zhenliu（孙凌岳）
 * @Description TODO
 * @Date 2025/6/21 10:20
 * @Version 1.0
 */
@FeignClient(name = "zl-logging-service", path = "/permission/inner/log")
public interface OperationLogApi {
    /**
     * 分页查询日志的api
     */
    PageResponse<OperationLogResDTO> findOperationResDTOPage(
            @RequestBody OperationLogReqDTO operationLogReqDTO,
            @PathVariable("pageNum") int pageNum,
            @PathVariable("pageSize") int pageSize);


    /**
     * 根据id删除日志的api
     * @param operId
     * @return
     */
    ResponseResult remove(@PathVariable("operId") Long operId);
}
